class Admin::SettingController < Admin::BaseController
  
  def index
    @setting = Setting.first
  end
  
  def test
  end
  
  def update
    @setting = Setting.first
    @setting.attributes = params[:setting]
    if @setting.save!
      respond_to do |format|
        flash[:notice] = t(:a_upd_suc)
        format.html { redirect_to :action => :index }
      end
    else
      flash[:error] = t(:a_del_lose)
      respond_to do |format|
        format.html { render :action => :index }
      end
    end
  end
  
end
